import request from '@/utils/request'

// 查询科研成果信息列表
export function listAchievements(query) {
  return request({
    url: '/system/achievements/list',
    method: 'get',
    params: query
  })
}

// 查询科研成果信息详细
export function getAchievements(achievementId) {
  return request({
    url: '/system/achievements/' + achievementId,
    method: 'get'
  })
}

// 新增科研成果信息
export function addAchievements(data) {
  return request({
    url: '/system/achievements',
    method: 'post',
    data: data
  })
}

// 修改科研成果信息
export function updateAchievements(data) {
  return request({
    url: '/system/achievements',
    method: 'put',
    data: data
  })
}

// 删除科研成果信息
export function delAchievements(achievementId) {
  return request({
    url: '/system/achievements/' + achievementId,
    method: 'delete'
  })
}
